<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">行业管理</h4>
</div>
<div ng-controller="industryCtrl">
    <div class="wrapper-md ng-scope">
        <div class="panel panel-default">
            <div class="row wrapper">
                <div class="col-sm-9">
                  <!--  <form class="form-inline ng-pristine ng-valid">
                        <div class="form-group">
                            <label class="control-label">行业名称</label>
                            <input type="text" class="input-sm form-control">
                        </div>
                        <button class="btn btn-sm btn-default">查询</button>
                    </form>-->
                </div>
                <div class="col-sm-3">
                    <div class="pull-right" ng-controller="getIndustryCtrl">
                        <script type="text/ng-template" id="industryAdd.html">
                            <div ng-include="'tpl/systemSetting/industry_add.html'"></div>
                        </script>
                        <button class="btn btn-sm btn-info" ng-click="open()">添加行业</button>

                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="list-container" ng-controller="ModalDemoCtrl">
                <div class="list-sub" ng-repeat="types in data" ng-init="types.visiable=false">
                    <!-- 1级分类content -->
                    <div class="list-item" >
                        <div class="list-item-left">
                            <button class="expandbtn" ng-click="types.visiable=!types.visiable">
                                <i class="fa fa-plus"  ng-if="types.children.length > 0"  ng-class="{false:'fa fa-plus',true:'fa fa-minus'}[types.visiable]"></i>{{types.name}}</button>
                        </div>
                        <div class="list-item-right">
                            <script type="text/ng-template" id="industryEdit.html">
                                <div ng-include="'tpl/systemSetting/industry_edit.html'"></div>
                            </script>
                            <button class="btn btn-sm btn-info" ng-click="edit(types.id,types.money,types.name,types.parentId)">修改</button>
                            <script type="text/ng-template" id="industryDel.html">
                                <div ng-include="'tpl/systemSetting/delete.html'"></div>
                            </script>
                            <button class="btn btn-sm btn-danger"  ng-click="delete(types.id)">删除</button>
                        </div>
                    </div>
                    <!-- 2级分类content -->
                    <div class="list-item-next" ng-repeat="type in types.children" ng-show="types.visiable" ng-init="type.visible=false">
                        <div class="list-item">
                            <div class="list-item-left">
                                <button class="expandbtn" ng-click="type.visible=!type.visible">{{type.name}}</button>
                            </div>
                            <div class="list-item-right">
                                <button class="btn btn-sm btn-info" ng-click="edit(type.id,type.money,type.name,type.parentId)">修改</button>
                                <button class="btn btn-sm btn-danger" ng-click="delete(type.id)">删除</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>




